package com.woniu.product.common;


import com.woniu.result.ResultCode;

public enum ProductResultCode implements ResultCode {
    CATEGORY_PARENT_NOT_FOUND(301, "类别父类不存在"),
    SPU_INEXISTENCE(302, "SPU不存在"),
    SKU_INEXISTENCE(303, "SKU不存在"),
    CATEGORY_NOT_FOUND(304, "类别不存在"),
    PROPVALUE_NOT_FOUND(305, "属性信息有问题"),
    SKU_SALESCOUNT_ERROR(306, "销量有问题");


    private int code;
    private String message;

    private ProductResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
